/* 
响应式样式表 (responsive.css)
此文件包含网站的响应式设计样式，确保网站在不同设备上都能良好显示
*/

/* ===== 大型设备 (小于 1200px) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h2 {
        font-size: 3.6rem;
    }
    
    .case-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ===== 中型设备 (小于 992px) ===== */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .container {
        max-width: 720px;
    }
    
    .hero .container,
    .evaluation-intro .container {
        flex-direction: column;
    }
    
    .hero-content,
    .intro-text {
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .intro-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-pane.active {
        flex-direction: column-reverse;
    }
    
    .dimension-image,
    .dimension-info {
        width: 100%;
    }
}

/* ===== 小型设备 (小于 768px) ===== */
@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .container {
        max-width: 540px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--box-shadow);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .statistics .container {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .partner-logos {
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-about .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p:first-child {
        margin-bottom: 1rem;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 auto;
        padding: 1.5rem 1rem;
        text-align: center;
    }
}

/* ===== 超小型设备 (小于 576px) ===== */
@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .features,
    .case-studies,
    .partners,
    .evaluation-intro,
    .evaluation-process,
    .evaluation-dimensions,
    .evaluation-form,
    .evaluation-testimonials,
    .evaluation-faq {
        padding: 6rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cta h2 {
        font-size: 3rem;
    }
    
    .page-banner h2 {
        font-size: 3.2rem;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1.6rem;
    }
}

/* 移动端优化样式 - 添加到responsive.css文件末尾 */

/* 改进移动导航菜单 */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-icon {
        position: relative;
        z-index: 100;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* 改进导航关闭按钮 */
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--gray-200);
        border-radius: 50%;
        cursor: pointer;
    }
}

/* 增强移动端表单体验 */
@media (max-width: 576px) {
    input, select, textarea {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 1.2rem 1.8rem;
        width: 100%;
    }

    /* 增强表单提交按钮可触摸区域 */
    .form-submit .btn {
        padding: 1.5rem;
    }

    /* 改进移动端搜索框 */
    .search-input input {
        padding: 1.5rem;
    }

    .search-btn {
        padding: 1.5rem;
    }

    /* 优化小屏幕上的结果布局 */
    .results-grid {
        gap: 2rem;
    }

    .result-item {
        margin-bottom: 2rem;
    }
}

/* 改进滑块在移动端的触摸体验 */
@media (max-width: 768px) {
    .testimonial-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        padding-bottom: 20px;
    }

    .testimonial-item {
        scroll-snap-align: center;
        min-width: 90%;
        margin-right: 20px;
        margin-bottom: 0;
    }

    /* 隐藏滚动条但保持功能 */
    .testimonial-slider::-webkit-scrollbar {
        height: 8px;
    }

    .testimonial-slider::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: 4px;
    }

    .testimonial-slider::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 4px;
    }
}

/* 改进卡片布局在小屏幕上的呈现 */
@media (max-width: 576px) {
    .feature-cards, .case-cards, .partner-logos, .category-cards {
        gap: 2rem;
    }

    .feature-card, .case-card, .category-card {
        padding: 2rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* 优化案例和特色卡片的内容展示 */
    .case-content h3, .feature-card h3 {
        font-size: 2rem;
    }

    .case-content p, .feature-card p {
        font-size: 1.5rem;
    }

    /* 改进页脚在移动端的布局 */
    .footer-content {
        gap: 2rem;
    }

    .footer-links, .footer-contact {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 优化表单在移动端的布局和易用性 */
@media (max-width: 768px) {
    .form-privacy {
        display: flex;
        align-items: flex-start;
    }

    .form-privacy input {
        margin-top: 3px;
    }

    /* 增强按钮和交互元素的可点击区域 */
    .btn, .search-btn, .filter-btn, .view-btn, .pagination-btn {
        min-height: 44px; /* 符合可访问性标准的最小高度 */
    }

    /* 优化FAQs在移动端的呈现 */
    .faq-question {
        padding: 1.5rem;
    }

    .faq-question h3 {
        font-size: 1.6rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
}

/* 优化评估流程在小屏幕上的呈现 */
@media (max-width: 576px) {
    .process-steps::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    /* 优化评估维度Tab按钮在移动端的显示 */
    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 3rem;
    }

    .tab-btn {
        padding: 1rem 1.5rem;
    }
}